package cn.gzjp.modules.dt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.dt.entity.QuestionOption;
import cn.gzjp.modules.dt.dao.QuestionOptionDao;

/**
 * 题目选项Service
 * @author zengcp
 * @version 2018-02-24
 */
@Service
@Transactional(readOnly = true)
public class QuestionOptionService extends CrudService<QuestionOptionDao, QuestionOption> {

	public QuestionOption get(String id) {
		return super.get(id);
	}
	
	public List<QuestionOption> findList(QuestionOption questionOption) {
		return super.findList(questionOption);
	}
	
	public Page<QuestionOption> findPage(Page<QuestionOption> page, QuestionOption questionOption) {
		return super.findPage(page, questionOption);
	}
	
	@Transactional(readOnly = false)
	public void save(QuestionOption questionOption) {
		super.save(questionOption);
	}
	
	@Transactional(readOnly = false)
	public void delete(QuestionOption questionOption) {
		super.deleteByLogic(questionOption);
	}
	
}